Integrand size = 31, antiderivative size = 105 \[ \int \frac {\left (2-3 x+x^2\right ) \left (d+e x+f x^2\right )}{\left (4-5 x^2+x^4\right )^2} \, dx=-\frac {5 d-6 e+8 f+(3 d-4 e+6 f) x}{12 \left (2+3 x+x^2\right )}-\frac {1}{36} (d+e+f) \log (1-x)+\frac {1}{144} (d+2 e+4 f) \log (2-x)-\frac {1}{36} (7 d-13 e+19 f) \log (1+x)+\frac {1}{144} (31 d-50 e+76 f) \log (2+x) \]
[Out]
Time = 0.20 (sec) , antiderivative size = 105, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.161, Rules used = {1600, 1074, 1086, 646, 31} \[ \int \frac {\left (2-3 x+x^2\right ) \left (d+e x+f x^2\right )}{\left (4-5 x^2+x^4\right )^2} \, dx=-\frac {x (3 d-4 e+6 f)+5 d-6 e+8 f}{12 \left (x^2+3 x+2\right )}-\frac {1}{36} \log (1-x) (d+e+f)+\frac {1}{144} \log (2-x) (d+2 e+4 f)-\frac {1}{36} \log (x+1) (7 d-13 e+19 f)+\frac {1}{144} \log (x+2) (31 d-50 e+76 f) \]
[In]
[Out]
Rule 31
Rule 646
Rule 1074
Rule 1086
Rule 1600
Rubi steps \begin{align*} \text {integral}& = \int \frac {d+e x+f x^2}{\left (2-3 x+x^2\right ) \left (2+3 x+x^2\right )^2} \, dx \\ & = -\frac {5 d-6 e+8 f+(3 d-4 e+6 f) x}{12 \left (2+3 x+x^2\right )}-\frac {1}{72} \int \frac {6 (3 d-10 e+12 f)-24 (2 d-3 e+5 f) x+6 (3 d-4 e+6 f) x^2}{\left (2-3 x+x^2\right ) \left (2+3 x+x^2\right )} \, dx \\ & = -\frac {5 d-6 e+8 f+(3 d-4 e+6 f) x}{12 \left (2+3 x+x^2\right )}-\frac {\int \frac {-288 (2 d-3 e+5 f)+108 (3 d-10 e+12 f)+(72 (3 d-4 e+6 f)-36 (3 d-10 e+12 f)) x}{2-3 x+x^2} \, dx}{5184}-\frac {\int \frac {288 (2 d-3 e+5 f)+108 (3 d-10 e+12 f)-(72 (3 d-4 e+6 f)-36 (3 d-10 e+12 f)) x}{2+3 x+x^2} \, dx}{5184} \\ & = -\frac {5 d-6 e+8 f+(3 d-4 e+6 f) x}{12 \left (2+3 x+x^2\right )}-\frac {1}{144} (-31 d+50 e-76 f) \int \frac {1}{2+x} \, dx-\frac {1}{144} (-d-2 e-4 f) \int \frac {1}{-2+x} \, dx-\frac {1}{36} (d+e+f) \int \frac {1}{-1+x} \, dx-\frac {1}{36} (7 d-13 e+19 f) \int \frac {1}{1+x} \, dx \\ & = -\frac {5 d-6 e+8 f+(3 d-4 e+6 f) x}{12 \left (2+3 x+x^2\right )}-\frac {1}{36} (d+e+f) \log (1-x)+\frac {1}{144} (d+2 e+4 f) \log (2-x)-\frac {1}{36} (7 d-13 e+19 f) \log (1+x)+\frac {1}{144} (31 d-50 e+76 f) \log (2+x) \\ \end{align*}
Time = 0.05 (sec) , antiderivative size = 97, normalized size of antiderivative = 0.92 \[ \int \frac {\left (2-3 x+x^2\right ) \left (d+e x+f x^2\right )}{\left (4-5 x^2+x^4\right )^2} \, dx=\frac {1}{144} \left (-\frac {12 (-6 e+8 f-4 e x+6 f x+d (5+3 x))}{2+3 x+x^2}-4 (d+e+f) \log (1-x)+(d+2 e+4 f) \log (2-x)-4 (7 d-13 e+19 f) \log (1+x)+(31 d-50 e+76 f) \log (2+x)\right ) \]
[In]
[Out]
Time = 0.08 (sec) , antiderivative size = 96, normalized size of antiderivative = 0.91
method | result | size |
default | \(-\frac {\frac {d}{12}-\frac {e}{6}+\frac {f}{3}}{x +2}+\left (\frac {31 d}{144}-\frac {25 e}{72}+\frac {19 f}{36}\right ) \ln \left (x +2\right )+\left (-\frac {7 d}{36}+\frac {13 e}{36}-\frac {19 f}{36}\right ) \ln \left (x +1\right )-\frac {\frac {d}{6}-\frac {e}{6}+\frac {f}{6}}{x +1}+\left (-\frac {d}{36}-\frac {e}{36}-\frac {f}{36}\right ) \ln \left (x -1\right )+\left (\frac {d}{144}+\frac {e}{72}+\frac {f}{36}\right ) \ln \left (x -2\right )\) | \(96\) |
norman | \(\frac {\left (-\frac {d}{4}+\frac {e}{3}-\frac {f}{2}\right ) x^{3}+\left (\frac {3 d}{4}-\frac {5 e}{6}+f \right ) x +\left (\frac {d}{3}-\frac {e}{2}+\frac {5 f}{6}\right ) x^{2}-\frac {5 d}{6}+e -\frac {4 f}{3}}{x^{4}-5 x^{2}+4}+\left (-\frac {7 d}{36}+\frac {13 e}{36}-\frac {19 f}{36}\right ) \ln \left (x +1\right )+\left (-\frac {d}{36}-\frac {e}{36}-\frac {f}{36}\right ) \ln \left (x -1\right )+\left (\frac {d}{144}+\frac {e}{72}+\frac {f}{36}\right ) \ln \left (x -2\right )+\left (\frac {31 d}{144}-\frac {25 e}{72}+\frac {19 f}{36}\right ) \ln \left (x +2\right )\) | \(121\) |
risch | \(\frac {\left (-\frac {d}{4}+\frac {e}{3}-\frac {f}{2}\right ) x -\frac {5 d}{12}+\frac {e}{2}-\frac {2 f}{3}}{x^{2}+3 x +2}-\frac {\ln \left (x -1\right ) d}{36}-\frac {\ln \left (x -1\right ) e}{36}-\frac {\ln \left (x -1\right ) f}{36}+\frac {31 \ln \left (x +2\right ) d}{144}-\frac {25 \ln \left (x +2\right ) e}{72}+\frac {19 \ln \left (x +2\right ) f}{36}-\frac {7 \ln \left (-x -1\right ) d}{36}+\frac {13 \ln \left (-x -1\right ) e}{36}-\frac {19 \ln \left (-x -1\right ) f}{36}+\frac {\ln \left (2-x \right ) d}{144}+\frac {\ln \left (2-x \right ) e}{72}+\frac {\ln \left (2-x \right ) f}{36}\) | \(131\) |
parallelrisch | \(\frac {-96 f -60 d +72 e -36 d x +2 \ln \left (x -2\right ) d +4 \ln \left (x -2\right ) e -8 \ln \left (x -1\right ) d -8 \ln \left (x -1\right ) e +152 \ln \left (x +2\right ) f -152 \ln \left (x +1\right ) f -150 \ln \left (x +2\right ) x e +6 \ln \left (x -2\right ) x e -12 \ln \left (x -1\right ) x d -12 \ln \left (x -1\right ) x e -84 \ln \left (x +1\right ) x d +156 \ln \left (x +1\right ) x e +93 \ln \left (x +2\right ) x d +2 \ln \left (x -2\right ) x^{2} e -4 \ln \left (x -1\right ) x^{2} d -4 \ln \left (x -1\right ) x^{2} e -28 \ln \left (x +1\right ) x^{2} d +52 \ln \left (x +1\right ) x^{2} e +31 \ln \left (x +2\right ) x^{2} d -50 \ln \left (x +2\right ) x^{2} e +62 \ln \left (x +2\right ) d +12 \ln \left (x -2\right ) x f -12 \ln \left (x -1\right ) x f -228 \ln \left (x +1\right ) x f +228 \ln \left (x +2\right ) x f -100 \ln \left (x +2\right ) e -56 \ln \left (x +1\right ) d +104 \ln \left (x +1\right ) e +3 \ln \left (x -2\right ) x d +48 e x +4 \ln \left (x -2\right ) x^{2} f -4 \ln \left (x -1\right ) x^{2} f -76 \ln \left (x +1\right ) x^{2} f +76 \ln \left (x +2\right ) x^{2} f +8 \ln \left (x -2\right ) f -8 \ln \left (x -1\right ) f +\ln \left (x -2\right ) x^{2} d -72 f x}{144 x^{2}+432 x +288}\) | \(334\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 191 vs. \(2 (95) = 190\).
Time = 0.34 (sec) , antiderivative size = 191, normalized size of antiderivative = 1.82 \[ \int \frac {\left (2-3 x+x^2\right ) \left (d+e x+f x^2\right )}{\left (4-5 x^2+x^4\right )^2} \, dx=-\frac {12 \, {\left (3 \, d - 4 \, e + 6 \, f\right )} x - {\left ({\left (31 \, d - 50 \, e + 76 \, f\right )} x^{2} + 3 \, {\left (31 \, d - 50 \, e + 76 \, f\right )} x + 62 \, d - 100 \, e + 152 \, f\right )} \log \left (x + 2\right ) + 4 \, {\left ({\left (7 \, d - 13 \, e + 19 \, f\right )} x^{2} + 3 \, {\left (7 \, d - 13 \, e + 19 \, f\right )} x + 14 \, d - 26 \, e + 38 \, f\right )} \log \left (x + 1\right ) + 4 \, {\left ({\left (d + e + f\right )} x^{2} + 3 \, {\left (d + e + f\right )} x + 2 \, d + 2 \, e + 2 \, f\right )} \log \left (x - 1\right ) - {\left ({\left (d + 2 \, e + 4 \, f\right )} x^{2} + 3 \, {\left (d + 2 \, e + 4 \, f\right )} x + 2 \, d + 4 \, e + 8 \, f\right )} \log \left (x - 2\right ) + 60 \, d - 72 \, e + 96 \, f}{144 \, {\left (x^{2} + 3 \, x + 2\right )}} \]
[In]
[Out]
Timed out. \[ \int \frac {\left (2-3 x+x^2\right ) \left (d+e x+f x^2\right )}{\left (4-5 x^2+x^4\right )^2} \, dx=\text {Timed out} \]
[In]
[Out]
none
Time = 0.19 (sec) , antiderivative size = 91, normalized size of antiderivative = 0.87 \[ \int \frac {\left (2-3 x+x^2\right ) \left (d+e x+f x^2\right )}{\left (4-5 x^2+x^4\right )^2} \, dx=\frac {1}{144} \, {\left (31 \, d - 50 \, e + 76 \, f\right )} \log \left (x + 2\right ) - \frac {1}{36} \, {\left (7 \, d - 13 \, e + 19 \, f\right )} \log \left (x + 1\right ) - \frac {1}{36} \, {\left (d + e + f\right )} \log \left (x - 1\right ) + \frac {1}{144} \, {\left (d + 2 \, e + 4 \, f\right )} \log \left (x - 2\right ) - \frac {{\left (3 \, d - 4 \, e + 6 \, f\right )} x + 5 \, d - 6 \, e + 8 \, f}{12 \, {\left (x^{2} + 3 \, x + 2\right )}} \]
[In]
[Out]
none
Time = 0.30 (sec) , antiderivative size = 95, normalized size of antiderivative = 0.90 \[ \int \frac {\left (2-3 x+x^2\right ) \left (d+e x+f x^2\right )}{\left (4-5 x^2+x^4\right )^2} \, dx=\frac {1}{144} \, {\left (31 \, d - 50 \, e + 76 \, f\right )} \log \left ({\left | x + 2 \right |}\right ) - \frac {1}{36} \, {\left (7 \, d - 13 \, e + 19 \, f\right )} \log \left ({\left | x + 1 \right |}\right ) - \frac {1}{36} \, {\left (d + e + f\right )} \log \left ({\left | x - 1 \right |}\right ) + \frac {1}{144} \, {\left (d + 2 \, e + 4 \, f\right )} \log \left ({\left | x - 2 \right |}\right ) - \frac {{\left (3 \, d - 4 \, e + 6 \, f\right )} x + 5 \, d - 6 \, e + 8 \, f}{12 \, {\left (x + 2\right )} {\left (x + 1\right )}} \]
[In]
[Out]
Time = 0.08 (sec) , antiderivative size = 97, normalized size of antiderivative = 0.92 \[ \int \frac {\left (2-3 x+x^2\right ) \left (d+e x+f x^2\right )}{\left (4-5 x^2+x^4\right )^2} \, dx=\ln \left (x-2\right )\,\left (\frac {d}{144}+\frac {e}{72}+\frac {f}{36}\right )-\ln \left (x+1\right )\,\left (\frac {7\,d}{36}-\frac {13\,e}{36}+\frac {19\,f}{36}\right )-\ln \left (x-1\right )\,\left (\frac {d}{36}+\frac {e}{36}+\frac {f}{36}\right )+\ln \left (x+2\right )\,\left (\frac {31\,d}{144}-\frac {25\,e}{72}+\frac {19\,f}{36}\right )-\frac {\frac {5\,d}{12}-\frac {e}{2}+\frac {2\,f}{3}+x\,\left (\frac {d}{4}-\frac {e}{3}+\frac {f}{2}\right )}{x^2+3\,x+2} \]
[In]
[Out]